# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
# Maintainer: Alan Lacerda <alacerda@alpinelinux.org>
pkgname=mate-settings-daemon
pkgver=1.28.0
pkgrel=0
pkgdesc="MATE Settings daemon"
url="https://github.com/mate-desktop/mate-settings-daemon"
arch="all"
license="GPL-2.0-or-later LGPL-2.1-or-later"
depends="mate-common"
makedepends="
	dconf-dev
	freeglut-dev
	glib-dev
	gobject-introspection-dev
	gtk+3.0-dev
	intltool
	libcanberra-dev
	libmatekbd-dev
	libmatemixer-dev
	libnotify-dev
	libsm-dev
	libtool
	libxklavier-dev
	mate-desktop-dev
	polkit-dev
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://pub.mate-desktop.org/releases/${pkgver%.*}/mate-settings-daemon-$pkgver.tar.xz
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
		--enable-polkit \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
1bd7bfec26538abd2ba44ff2e52e3782e3c2467e20f784d411dbcc80f1b0bb8e95f9a3075c42ac49576f3f3dd7cbe07e78984711b43d9cf856dcf6bb213535a3  mate-settings-daemon-1.28.0.tar.xz
"
